"""
project_name = 'PythonTest'
name = 'myLoop'
datetime ='2020/11/1 14:12'

❣ฅ(▼▾▼)ฅ

"""
# -*-encoding = UTF-8-*-
'''
循环游戏双方输出石头剪刀布
判断对比结果，并输出
'''
import random

while True:
    player = int(input("请输入你要出的选项：石头(0) 剪刀(1) 布(2) 退出(5)\n"))
    gameList = ['石头', '剪刀', '布']
    computer = random.randint(0, 2)
    if player == 5:
        print("已退出，欢迎下次再来ヽ(*￣▽￣*)ノ")
        break

    print("玩家出 %s 电脑出 %s " % (player, computer))
    if (player == 0 and computer == 1) \
            or (player == 1 and computer == 2) \
            or (player == 2 and computer == 0):
        print("玩家胜利ヾ(^▽^)ゞ")
    elif player == computer:
        print("平局┓( ´∀` )┏")
    else:
        print("电脑胜利ヾ(￣ー￣)ゞ")

